package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.system.entity.CarrierSchool;
import io.geekidea.springbootplus.system.param.CarrierSchoolPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

/**
 *  服务类
 *
 * @author miko
 * @since 2020-10-15
 */
public interface CarrierSchoolService extends BaseService<CarrierSchool> {

    /**
     * 保存
     *
     * @param carrierSchool
     * @return
     * @throws Exception
     */
    boolean saveCarrierSchool(CarrierSchool carrierSchool) throws Exception;

    /**
     * 修改
     *
     * @param carrierSchool
     * @return
     * @throws Exception
     */
    boolean updateCarrierSchool(CarrierSchool carrierSchool) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteCarrierSchool(Long id) throws Exception;



    List<CarrierSchool> getAllList(LambdaQueryWrapper<CarrierSchool> wrapper) throws Exception;

    /**
     * 获取分页对象
     *
     * @param carrierSchoolQueryParam
     * @return
     * @throws Exception
     */
    Paging<CarrierSchool> getCarrierSchoolPageList(CarrierSchoolPageParam carrierSchoolPageParam) throws Exception;


}
